Helper to configure and render a Validator widget.
public System.Web.Mvc.MvcHtmlString Validator(
System.string ,
ValidatorModel
)
'Declaration
Public Overloads Function Validator( _
ByVal As System.String, _
ByVal As ValidatorModel _
) As System.Web.Mvc.MvcHtmlString
Parameters
- id
- The ID of target control
- model
- Instance of ValidatorModel
Return Value
String that represents control
Target Platforms: Windows 8.1, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2